import request from "@/utils/request";
// 封装获取课程图片的接口
export const fetchCourseInfo = async (courseId) => {
    try {
        const response = await request.get(`/getCourseInfo/${courseId}`);
        return response.data;  // 返回课程的所有信息

    } catch (error) {
        throw new Error('获取课程图片失败');
    }
};